package chp07;

import java.util.Arrays;

public class Test14 {

    public static void main(String[] args) {
        //这不是数组拷贝，只是拷贝了引用
        int[] nums1 = {12,45,78,4,21};
        int[] nums2 = nums1;
        System.out.println(Arrays.toString(nums1));
        System.out.println(Arrays.toString(nums2));
        nums1[0] = 100;
        System.out.println("--------------");
        System.out.println(Arrays.toString(nums1));
        System.out.println(Arrays.toString(nums2));
    }
}
